const { host, dialect, admin, dataBase, pwd } = require("./dbConfig");
const SequelizeAuto = require('sequelize-auto');
const auto = new SequelizeAuto(dataBase, admin, pwd, {
  host,
  dialect,
  directory: './models', // where to write files
  port: '3306',
  singularize: true, // convert plural table names to singular model names
  additional: {
    timestamps: false
    // ...options added to each model
  },
  tables: [
    'admin',
    'users',
    'agencys',
    'relation',
    'scrips',
    "swiper",
    "middle",
    "designs",
    "code",
    "scrip_imgs"
  ] // use all tables, if omitted
  //...
})

auto.run()